package com.ruoyi.basics.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 仓库管理对象 wms_warehouse
 * 
 * @author ruoyi
 * @date 2025-06-09
 */
@Data
public class WmsWarehouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /** 仓库编码 */
    @Excel(name = "仓库编码")
    private String code;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String name;

    /** 仓库类型 */
    @Excel(name = "仓库类型")
    private String type;

    /** 省市区描述 */
    @Excel(name = "省市区描述")
    private String location;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String area;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 仓库面积 */
    @Excel(name = "仓库面积")
    private BigDecimal surface;

    /** 负责人id */
    private Long personId;

    /** 负责人姓名 */
    @Excel(name = "负责人姓名")
    private String personName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 库区数量 */
    @Excel(name = "库区数量")
    private Long includedNum;

    /** 仓库状态 */
    @Excel(name = "仓库状态")
    private Integer status;

    /** 创建人id */
    private Long createUser;

    /** 创建人 */
    private String createName;

    /** 更新人id */
    private Long updateUser;

    /** 更新人 */
    private String updateName;

    /** 逻辑删除 */
    private Integer logicDel;

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setSurface(BigDecimal surface) 
    {
        this.surface = surface;
    }

    public BigDecimal getSurface() 
    {
        return surface;
    }

    public void setPersonId(Long personId) 
    {
        this.personId = personId;
    }

    public Long getPersonId() 
    {
        return personId;
    }

    public void setPersonName(String personName) 
    {
        this.personName = personName;
    }

    public String getPersonName() 
    {
        return personName;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setIncludedNum(Long includedNum) 
    {
        this.includedNum = includedNum;
    }

    public Long getIncludedNum() 
    {
        return includedNum;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }

    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }

    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }

    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }

    public void setLogicDel(Integer logicDel) 
    {
        this.logicDel = logicDel;
    }

    public Integer getLogicDel() 
    {
        return logicDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("type", getType())
            .append("location", getLocation())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("address", getAddress())
            .append("surface", getSurface())
            .append("personId", getPersonId())
            .append("personName", getPersonName())
            .append("phone", getPhone())
            .append("includedNum", getIncludedNum())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createUser", getCreateUser())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateName", getUpdateName())
            .append("updateTime", getUpdateTime())
            .append("logicDel", getLogicDel())
            .toString();
    }
}
